package com.example.demo.entity.shoppingCart;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ShoppingCartInfo {
    private Long id;
    private Long goodsId;
    private Long goodsCode;
    private Long number;
    private String price;
    private String sale;

    private Long isDelete;
    private Long createUser;
    private Long createTime;
    private Long updateUser;
    private Long updateTime;

    public void initEntity() {
        this.id = 0l;
        this.isDelete = 0l;
    }
}


